Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: writtenTypes refactors #5426

Closed
wants to merge 1 commit into from
Closed

Conversation

OceanOak
Copy link
Collaborator

@OceanOak OceanOak commented Nov 1, 2024

This is an attempt to refactor WrittenTypes to reduce redundancy when handling SubModules.

This isn't fully working yet; I still have to resolve an issue where an extra module with an empty name appears at the root level
Example:

module = 
  module MyModule1 =
    type ID1 = Int64
    module MyModule2 =
      type ID2 = Int64
      module MyModule3 =
        type ID3 = Int64

It might be good to see if there’s a better shape for the types before solving this issue

@StachuDotNet
Copy link
Member

Is this still relevant? Don't mean to bug, just going through draft PRs and seeing if this is worth keeping aroundd

@OceanOak
Copy link
Collaborator Author

Is this still relevant? Don't mean to bug, just going through draft PRs and seeing if this is worth keeping aroundd

We previously discussed the potential of reducing redundancy when handling SubModules in WT. This PR was an attempt to do so and is still relevant—I remember getting stuck on the issue mentioned above but then got distracted by more important tasks. We can close this for now, and when it becomes more relevant, we can cherry-pick from it, as we have made many changes since this PR was opened.

@OceanOak OceanOak closed this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants